From: Jeroen van der Heijden Date: Thu, 6 Jun 2019 11:46:50 +0000 (+0200) Subject: Fixed missing signum in `stop` logging X-Git-Tag: archive/raspbian/2.0.44-1+rpi1~1^2~3^2~6^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=eacc24adafe47229a4d74820be15f6752aa77edf;p=siridb-server.git Fixed missing signum in `stop` logging --- diff --git a/src/siri/siri.c b/src/siri/siri.c index e72d9cde..5651f1cc 100644 --- a/src/siri/siri.c +++ b/src/siri/siri.c @@ -412,8 +412,9 @@ static void SIRI_try_close(uv_timer_t * handle) } else { - log_info("SiriDB is closing but is waiting for %d task(s) to " - "finish...", num); + log_info( + "SiriDB is closing but is waiting for %d task(s) to finish...", + num); } } @@ -423,13 +424,16 @@ static void SIRI_signal_handler( { if (signum == SIGPIPE) { - log_warning("Signal (%d) received, probably a connection was lost"); + log_warning( + "Signal (%d) received, probably a connection was lost", + signum); return; } if (siri.status == SIRI_STATUS_CLOSING) { - log_error("Receive a second signal (%d), stop SiriDB immediately!", + log_error( + "Receive a second signal (%d), stop SiriDB immediately!", signum); /* set siri_err, see ERR_CLOSE_TIMEOUT_REACHED for the reason why */ siri_err = ERR_CLOSE_ENFORCED;